package bb.lanxing.lib.devices.ble.ble.characteristic.radar;

import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;

public enum ThreatLevel {
    NoThreat(0),
    MediumRisk(1),
    HighRisk(2),
    Unknown(3);
    
    public static final Companion Companion = new Companion(null);
    private final int value;

    ThreatLevel(int i) {
        this.value = i;
    }

    public final int getValue() {
        return this.value;
    }


    public static final class Companion {
        public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        private Companion() {
        }

        public ThreatLevel from(int i) {
            ThreatLevel[] values;
            for (ThreatLevel threatLevel : ThreatLevel.values()) {
                if (threatLevel.getValue() == i) {
                    return threatLevel;
                }
            }
            return null;
        }
    }
}
